﻿using System;
using Lenic.DI.Lifetimes;

namespace Lenic.DI
{
    /// <summary>
    /// 容器注册委托
    /// </summary>
    /// <param name="container">一个 <see cref="IContainer" /> 类型的实例对象。</param>
    /// <param name="serviceType">待解析的类型。</param>
    /// <param name="name">解析类型的命名名称。</param>
    /// <param name="lifetime">解析得到的生存周期实例对象。</param>
    public delegate void Register(IContainer container, Type serviceType, string name, ref ILifetime lifetime);
}